package com.xszx.service;

import com.xszx.entity.TAsset;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xszx.entity.dto.AssetCheck;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 34129
* @description 针对表【t_asset】的数据库操作Service
* @createDate 2024-01-08 20:40:47
*/
public interface TAssetService extends IService<TAsset> {

    List<TAsset> selectAssetList(long did);

    List<TAsset> selectAssetLists();

    int deleteAssetById(long id);

    int addAsset(TAsset asset);

    int updateAsset(TAsset asset);

    TAsset getAssetByAid(Long aid,Long did);

    TAsset selectAssetByAid(long aid, long did);

    List<TAsset> selectAssetListUsing(Long did);

    List<TAsset> selectAssetListForbidden(Long did);

    List<TAsset> selectAssetListScrap(Long did);

    List<TAsset> selectAssetListFree(Long did);

    List<TAsset> selectAssetListFix(Long did);

    List<TAsset> selectAssetsByCheck(AssetCheck assetCheck);

    int updateAstatusByAid(@Param("aid") long aid,@Param("astatus") String astatus);

    TAsset selectAssetByAcode(long acode);
}
